import fetch from 'common/src/utils/fetch'
import UTILS from "common/src/utils/utils";
function getCreditRecognition(data){//获取学分信息开关信息
    return fetch ({
        url:`/api/scoremanagementservice/scoreManageController/getCreditRecognition?affirmType=${data}`,
        method:'get',
       
    })
}
function setCreditRecognition(data){
    return fetch ({
        url:`/api/scoremanagementservice/scoreManageController/setCreditRecognition`,
        method:'post',
        data
       
    }) 
}

//查询插班生预科班学生列表
function queryStudents(data){
    return fetch({
        url:'/api/scoremanagementservice/transferredAndPreppyController/queryStudents',
        data,
        method:'post'
    })
}
//添加学生
function insertOtherStudent(data){
    return fetch({
        url:'/api/scoremanagementservice/transferredAndPreppyController/insertOtherStudent',
        data,
        method:'post'
    })
}
//查询其他学生
function queryOtherStudent(studentId){
    return fetch({
        url:`/api/scoremanagementservice/transferredAndPreppyController/queryOtherStudent?studentId=${studentId}`,
        method:'get'
    })

}
function delOtherStudent(data){
    return fetch({
        url:`/api/scoremanagementservice/transferredAndPreppyController/delOtherStudent`,
        method: 'delete',
        data
    })
}
export default{
    getCreditRecognition,
    setCreditRecognition,
    queryStudents,
    insertOtherStudent,
    queryOtherStudent,
    delOtherStudent
   
}